package day05;

import java.util.Scanner;

public class ArrayDemo {
    public static void main(String[] args) {
        int[]a=new int[6];
        for(int i=0;i< a.length;i++){
            a[i]=(int)(Math.random()*100);
            System.out.println(a[i]);
        }






















       /* int[]a=new int[16];

        int[]a=new  int[5];
           a[0]=33;
        a[1]=44;
        a[2]=55;
        a[3]=66;
        a[4]=77;
        System.out.println(a[a.length-1]);
     int []b=new int []{10,20,30,40};
        System.out.println(b[b.length-2]);


        for (int i=0;i<a.length;i++){
            a[i]=(int)(Math.random()*100);
            System.out.println(a[i]);
        }
*/





        /*
        int[] b=new int []{4,5,6};
        double[]c= new  double[]{2.5,6.6};
        System.out.println(b[0]);
        boolean[]a={false,true,false};
        int []aa=new int[3];
        int[]aa1={4,5,6};

         */



    }
}
